package com.xinghou.platform.dao.mange.service.impl;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.xinghou.platform.dao.mange.VestAssignedDAO;
import com.xinghou.platform.dao.mange.service.VestAssignedDAOService;
import com.xinghou.platform.model.main.VestAssigned;
/**
 * 
 * @author wlw
 *
 */
@Service
public class VestAssignedDAOServiceImpl  implements VestAssignedDAOService{
	@Resource
	private VestAssignedDAO vestAssignedDAO;

	public List<VestAssigned> getvestAssigned(Integer vestId)throws DataAccessException {
			

		return vestAssignedDAO.getvestAssigned(vestId);
	}

	public int saveVestAssigned(VestAssigned vestAssigned)
			throws DataAccessException {
		// TODO Auto-generated method stub
		return vestAssignedDAO.saveVestAssigned(vestAssigned);
	}

	public int updateVestAssigned(VestAssigned vestAssigned)
			throws DataAccessException {
		// TODO Auto-generated method stub
		return vestAssignedDAO.updateVestAssigned(vestAssigned);
	}

	@Override
	public VestAssigned getvestAssignedById(Integer id)
			throws DataAccessException {
		// TODO Auto-generated method stub
		return vestAssignedDAO.getvestAssignedById(id);
	}

	@Override
	public VestAssigned isOrNotVestAssigned(int trueid, int fakeid, int status)
			throws DataAccessException {
		// TODO Auto-generated method stub
		return vestAssignedDAO.isOrNotVestAssigned(trueid, fakeid, status);
	}

	@Override
	public int getvestAssignedCount(int vestid) throws DataAccessException {
		// TODO Auto-generated method stub
		return vestAssignedDAO.getvestAssignedCount(vestid);
	}

	@Override
	public int delVestAssigned(int id) throws DataAccessException {
		// TODO Auto-generated method stub
		return vestAssignedDAO.delVestAssigned(id);
	}


	
}
